package com.tc.client;

import com.tc.client.Fallback.UserServiceClientFallback;
import com.tc.vo.UserVo;
import org.apache.catalina.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user")
public interface UserServiceClient {
    @GetMapping("/user/findUser")
    public UserVo getUser(@RequestParam(value="id")Integer userId);
}
